{% extends "books/base.html" %}

{% block title %}
<title>publisher detail2</title>
{% endblock %}

{% block body %}
<h2>Publisher detail 2: {{ publisher }}</h2>
<ol>
  {% for book in page_obj %}
  <li>{{ book.title }}</li>
  {% endfor %}
</ol>

<div class="pagination">
  <span class="step-links">
    {% if page_obj.has_previous %}
    <a href="?page={{ page_obj.previous_page_number }}">previous</a>
    {% endif %}
    <span class="current">
      Page {{ page_obj.number }} of {{ paginator.num_pages }}.
    </span>
    {% if page_obj.has_next %}
    <a href="?page={{ page_obj.next_page_number }}">next</a>
    {% endif %}
  </span>
</div>
{% endblock %}